import os
import sendrecv
import time
import threading
import record

if __name__ == "__main__":
    if not os.path.exists("D:\\data"):
        os.mkdir("D:\\data")
    if not os.path.exists("D:\\data\\ss"):
        os.mkdir("D:\\data\\ss")
    thread_parase_handle = threading.Thread(
        target=sendrecv.thread_parase, daemon=True)
    thread_parase_handle.start()
    thread_server = threading.Thread(target=sendrecv.server_run, daemon=True)
    thread_server.start()
    sendrecv.startTCP()
    record.start_record()
    while True:
        time.sleep(10)
